<?php
class Clone_Product
{
	public $_backup;
	protected $_clone;
	protected $_db;
	
	public function __construct(Mivec_Element_Array $_productid,$dbname)
	{
		Zend_Loader::loadClass('Mivec_Clone_Product');
		
		$this->_clone->product = new Mivec_Clone_Product($_productid,$dbname);
		$this->_db = $this->_clone->product->db();
		
		return $this;
	}
	
	public function _cloneProduct()
	{
		if ($this->_clone->product->_cloneProduct()) {
			return $this;
		}
	}
	
	public function _cloneAssociate()
	{
		if ($this->_clone->product->_cloneProductAssociate()) {
			return $this;
		}
	}

	public function db()
	{
		return $this->_db;
	}
}
